package CinemaDevelop;

public class Movie {
    String name;
    String director;
    String mainActor;
    int length;
    double rate;

    public Movie() {
    }

    public Movie(String name) {
        this.name = name;
    }

    public Movie(String mainActor, String director, String name, int length, double rate) {
        this.mainActor = mainActor;
        this.director = director;
        this.name = name;
        this.length = length;
        this.rate = rate;
    }

    public void getMovieInform() {
        System.out.println("电影名称：" + name + "  导演：" + director +
                "  主要演员：" + mainActor + "  电影时长：" + length +
                "  评分：" + rate);
    }
}
